package com.yj.user.exception;

import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;

@ControllerAdvice
public class BaseExceptionHandler {

    @ExceptionHandler(BaseException.class)
    public ResultResponse handler(BaseException e){

        return ResultResponse.fair(ResultCode.PARAM_TYPE_BIND_ERROR);
    }


}
